<template>
   <div>
        <div class="qr-btn" node-type="qr-btn">扫描二维码1232
            <input node-type="jsbridge" type="file" name="myPhoto" value="扫描二维码"/>
        </div>
        <!-- 输出二维码地址 -->
        <pre class="well result-qrcode" id="result"></pre>
    </div>
</template>
<script src="./js/jquery1.7.2.js"></script>
<script src="./js/qrcode.lib.min.js"></script>
<script src="./js/qrcode.min.js"></script>
<script>
  //初始化扫描二维码按钮，传入自定义的 node-type 属性
    // $(function () {
    //     Qrcode.init($('[node-type=qr-btn]'));
    // });
</script>
<script>

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  methods:{
    deal(){
      Qrcode.init($('[node-type=qr-btn]'));
    }
  },
  mounted(){
    this.deal
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
